﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LevenBlog.Core.Entities;

namespace LevenBlog.Core.Data
{
    public interface IImage
    {
        int Count(IDbProvider provider);

        int CountFromTypeID(IDbProvider provider, int typeid);

        void Insert(IDbProvider provider, lb_image image);

        void Update(IDbProvider provider, lb_image image);

        void Delete(IDbProvider provider, int id);

        void DeleteFromTypeID(IDbProvider provider, int typeid);

        lb_image Get(IDbProvider provider, int id);

        IList<lb_image> GetFromTypeID(IDbProvider provider, int typeid);
    }
}
